﻿using Microsoft.Xna.Framework;

namespace SceneManager
{
    /// <summary>
    /// Represents a point light
    /// </summary>
    public class PointLight : Light
    {
        /// <summary>
        /// Gets or sets the position of this light
        /// </summary>
        public Vector3 Position { get; set; }
        /// <summary>
        /// Gets or sets the radius of this light
        /// </summary>
        public float Radius { get; set; }

        /// <summary>
        /// Initializes a new instance of the PointLight class with specified color, intensity, position and radius
        /// </summary>
        /// <param name="color">The color of the light</param>
        /// <param name="intensity">The intensity of the light</param>
        /// <param name="position">The position of the light</param>
        /// <param name="radius">The radius of the light</param>
        public PointLight(Color color, float intensity, Vector3 position, float radius) : base(color, intensity)
        {
            Position = position;
            Radius = radius;
        }
    }
}
